package com.mdd.admin.validate.competition;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("赛事列创建参数")
public class CompetitionCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "name参数缺失")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotNull(message = "cover参数缺失")
    @ApiModelProperty(value = "封面")
    private String cover;

    @ApiModelProperty(value = "文章简介")
    private String description;

    @NotNull(message = "content参数缺失")
    @ApiModelProperty(value = "内容")
    private String content;

    @NotNull(message = "playTime参数缺失")
    @ApiModelProperty(value = "比赛时间")
    private String playTime;

    @ApiModelProperty(value = "比赛结束时间")
    private String playEndTime;
    @ApiModelProperty(value = "报名时间")
    private String registrationTime;
    @ApiModelProperty(value = "报名结束时间")
    private String registrationEndTime;

    @NotEmpty(message = "playType参数缺失")
    @ApiModelProperty(value = "比赛方式：1:男单打，2:女单打，3:男双打，4:女双打，5:男女混打")
    private List<String> playType;

    @NotNull(message = "schedule参数缺失")
    @ApiModelProperty(value = "赛程：初赛，半决赛，决赛")
    private String schedule;

//    @NotNull(message = "status参数缺失")
    @ApiModelProperty(value = "")
    private Integer status;

    private Integer viewNum;

//    @NotNull(message = "orgParty参数缺失")
    @ApiModelProperty(value = "组织方")
    private String orgParty;

//    @NotNull(message = "orgId参数缺失")
    @ApiModelProperty(value = "组织id")
    private Integer orgId;

//    @NotNull(message = "createId参数缺失")
    @ApiModelProperty(value = "创建id")
    private Integer createId;

//    @NotNull(message = "updateId参数缺失")
    @ApiModelProperty(value = "更新id")
    private Integer updateId;

}
